package com.subang.function.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.subang.common.annotation.Excel;
import com.subang.common.core.domain.BaseEntity;

/**
 * 用户评价对象 sb_evaluation
 * 
 * @author subei
 * @date 2025-03-13
 */
public class SbEvaluation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点评ID */
    private Long id;

    /** 教师ID */
    @Excel(name = "教师ID")
    private Long teacherId;

    @Excel(name = "讲师名字")
    private String teacherName;

    /** 学科 */
    @Excel(name = "学科")
    private String subject;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 点评得分 */
    @Excel(name = "点评得分")
    private Long score;

    /** 点评内容 */
    @Excel(name = "点评内容")
    private String comment;

    /** 点评时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "点评时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date evaluationDate;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }

    public void setSubject(String subject) 
    {
        this.subject = subject;
    }

    public String getSubject() 
    {
        return subject;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }

    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }

    public void setEvaluationDate(Date evaluationDate) 
    {
        this.evaluationDate = evaluationDate;
    }

    public Date getEvaluationDate() 
    {
        return evaluationDate;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teacherId", getTeacherId())
            .append("teacherName", getTeacherName())
            .append("subject", getSubject())
            .append("userId", getUserId())
            .append("score", getScore())
            .append("comment", getComment())
            .append("evaluationDate", getEvaluationDate())
            .append("userName", getUserName())
            .toString();
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }
}
